import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('good')
export class Good {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @Column()
  name: string;

  @Column()
  des: string;

  @Column()
  price: Number;

  @Column({
    select: false,
  })
  createdAt: Date;

  @Column()
  updatedAt: Date;
}
